package com.woniu.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@RequestMapping("test")
@Controller
public class testController {
    @RequestMapping("testException/{num}")
    public String testException(@PathVariable Integer num){
        System.out.println(10/num);
        return "index";
    }
    @GetMapping
    public void  select(){
        System.out.println("testController.select");
    }
    @PostMapping
    public void  save(){
        System.out.println("testController.save");
    }
    @PutMapping
    public void put(){
        System.out.println("testController..put");
    }
    @DeleteMapping
    public void delete(){
        System.out.println("testController.delete");
    }
}
